import namespace from "../namespace";

namespace.geo.Line = {
  crossLine(x1, y1, x2, y2, x3, y3) {
    let p1 = { x: x1, y: y1 },
      p2 = { x: x2, y: y2 },
      p3 = { x: x3, y: y3 };
    return (p1.x - p3.x) * (p2.y - p3.y) == (p2.x - p3.x) * (p1.y - p3.y);
  }
};
